home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
glass
/
glass.lha
/
GLASS
/
libcvr
/
ckmalloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-11-09
|
315b
|
20 lines
#include "all.h"
#include "cvr.h"
/* Allocate the given amount of memory and check if
it has been done. If not, complain, and stop.
*/
char *ckmalloc( sz )
unsigned sz;
{
register char *adr;
adr = malloc( sz );
if( adr == (char *)0 ){
perror( "malloc" );
exit( 1 );
}
return( adr );
}